package study.corejava.extend;

public class ParentA {
	
	public int parentA;
	
	int parentB;
	
	protected int parentC;
	
	//对私有域的访问控制
	private int parentD;
	
	public void say() {
		System.out.println("Parent 's say() Method !");
	}
	
	public void each() {
		System.out.println("Parent 's each Method !");
	}
	
	//公有方法访问私有域
	public int getParentD() {
		return parentD;
	}
}
